console.log('我被加载了, 我是个脚本', document, window);
// chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
//   if (message.action === "open-extension") {
//     console.log('我被open-extension 了吗？');
//     const extensionUrl = chrome.runtime.getURL("index.html"); // 获取插件页面的 URL
//     const iframe = document.createElement("iframe");
//     iframe.src = extensionUrl;
//     iframe.style.cssText = "position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 999999;";
//     document.body.appendChild(iframe);
//   }
// });
document.addEventListener('DOMContentLoaded', function() {
    const browserActionButton = document.querySelector("[data-browser-action-popup]");
    if (browserActionButton) {
    browserActionButton.click();
    } else {
    console.error('Browser action button not found');
    }
});
